class Test3_1 {
    public static void main(String[] args) {
        StringBuilder result = new StringBuilder();
        
        for (int i = 100; i <= 999; i++) {
            int hundreds = i / 100;         
            int tens = (i / 10) % 10;        
            int units = i % 10;              
        int sum = (int)(Math.pow(hundreds, 3) + Math.pow(tens, 3) + Math.pow(units, 3));
           if (sum == i) {
           if (result.length() > 0) {
        result.append(",");
                            }
           result.append(i);
                   }
            }                                                                                                                                                 
           System.out.println(result.toString());
            }
            }
